<?php
require_once(dirname(__FILE__) . '/include/config.inc.php');


$dosql->Execute("SELECT * FROM  `web_order2025`  WHERE 1   ORDER BY id asc", 8);
while ($row3 = $dosql->GetArray(8)) {

    $id = $row3['id'];
    echo $id."<br>";
    // 同步 over_picurls ,picfiles, 到 web_order
    $over_picurls = $row3['over_picurls'];
    //替换字符串 /uploads/ 为 https://zmdtc.oss-cn-beijing.aliyuncs.com/uploads/
    $over_picurls = str_replace("/uploads/", "https://zmdtc.oss-cn-beijing.aliyuncs.com/uploads/", $over_picurls);
    $picfiles = $row3['picfiles'];
    //替换字符串 /uploads/ 为 https://zmdtc.oss-cn-beijing.aliyuncs.com/uploads/
    $picfiles = str_replace("/uploads/", "https://zmdtc.oss-cn-beijing.aliyuncs.com/uploads/", $picfiles);
    $dosql->Execute("update  `web_order`  set  over_picurls='$over_picurls',picfiles='$picfiles' where id='$id' ");
    echo $id."更新成功<br>";

}




?>
